<?php

	/**
	 *	The example for xnApi.core.php version 1.0.0 only
	 *	gray 2010-5-7
	 */
	include	'./xnApi.core.php';

	$apiKey		=	'****';		//	Your Api Key
	$secret		=	'****';		//	Your Secret

	/*$xiaonei	=	new	xnApi( $apiKey, $secret );
	$xiaonei->friends();
	print_r( $xiaonei->friends->getFriends( 'JSON' ) );
	print_r( $xiaonei->friends->getAppFriends() );
	print_r( $xiaonei->friends->get() );
	print_r( $xiaonei->friends->areFriends( '75947227', '176412520' ) );

	$xiaonei	=	new	xnFriends( $apiKey, $secret );
	print_r( $xiaonei->getFriends( 'JSON' ) );
	print_r( $xiaonei->getAppFriends() );
	print_r( $xiaonei->get() );
	print_r( $xiaonei->areFriends( '75947227', '176412520' ) );*/

	$xiaonei	=	new	xiaonei( $apiKey, $secret );
	$xiaonei->friends();
	print_r( $xiaonei->friends->getFriends( 'JSON' ) );
	print_r( $xiaonei->friends->getAppFriends( 'JSON' ) );
	print_r( $xiaonei->friends->get( 'JSON' ) );
	print_r( $xiaonei->friends->areFriends( '75947227', '176412520', 'JSON' ) );

	$xiaonei->users();
	print_r( $xiaonei->users->getInfo( '75947227', 'JSON' ) );
	print_r( $xiaonei->users->getLoggedInUser( 'JSON' ) );
	print_r( $xiaonei->users->hasAppPermission( 'JSON' ) );
	print_r( $xiaonei->users->isAppUser( 'JSON' ) );

?>